<?xml version="1.0" encoding="UTF-8" ?>
<definitions id="definitions"
	targetNamespace="http://camunda.org/schema/1.0/bpmn20" 
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
  xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" 
	xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL">
	
	<process id="financialReport" name="Monthly financial report process" isExecutable="true">
	
		<startEvent id="theStart" />
		
		<sequenceFlow id="flow1" sourceRef="theStart" targetRef="writeReportTask" />
		
		<userTask id="writeReportTask" name="Write monthly financial report" >
		  <documentation>
        Write monthly financial report for publication to shareholders.
      </documentation>
      <potentialOwner>
        <resourceAssignmentExpression>
          <formalExpression>accountancy</formalExpression>
        </resourceAssignmentExpression>
      </potentialOwner>
		</userTask>
		
		<sequenceFlow id="flow2" sourceRef="writeReportTask" targetRef="verifyReportTask" />
			
		<userTask id="verifyReportTask" name="Verify monthly financial report" >
		  <documentation>
        Verify monthly financial report composed by the accountancy department.
        This financial report is going to be sent to all the company shareholders.  
      </documentation>
      <potentialOwner>
        <resourceAssignmentExpression>
          <formalExpression>management</formalExpression>
        </resourceAssignmentExpression>
      </potentialOwner>
		</userTask>
		
		<sequenceFlow id="flow3" sourceRef="verifyReportTask" targetRef="theEnd" />
			
		<endEvent id="theEnd" />
			
	</process>

	<bpmndi:BPMNDiagram>
		<bpmndi:BPMNPlane bpmnElement="financialReport">
			<bpmndi:BPMNShape bpmnElement="theStart">
				<omgdc:Bounds height="30.0" width="30.0" x="75.0" y="225.0" />
			</bpmndi:BPMNShape>
			<bpmndi:BPMNShape bpmnElement="writeReportTask">
				<omgdc:Bounds height="80.0" width="100.0" x="165.0" y="200.0" />
			</bpmndi:BPMNShape>
			<bpmndi:BPMNShape bpmnElement="verifyReportTask">
				<omgdc:Bounds height="80.0" width="100.0" x="330.0" y="200.0" />
			</bpmndi:BPMNShape>
			<bpmndi:BPMNShape bpmnElement="theEnd">
				<omgdc:Bounds height="28.0" width="28.0" x="480.0" y="226.0" />
			</bpmndi:BPMNShape>
			<bpmndi:BPMNEdge bpmnElement="flow1">
        <omgdi:waypoint x="105.0" y="240.0" />
        <omgdi:waypoint x="165.0" y="240.0" />
      </bpmndi:BPMNEdge>
			<bpmndi:BPMNEdge bpmnElement="flow2">
				<omgdi:waypoint x="265.0" y="240.0" />
				<omgdi:waypoint x="330.0" y="240.0" />
			</bpmndi:BPMNEdge>
			<bpmndi:BPMNEdge bpmnElement="flow3">
				<omgdi:waypoint x="430.0" y="240.0" />
				<omgdi:waypoint x="480.0" y="240.0" />
			</bpmndi:BPMNEdge>
		</bpmndi:BPMNPlane>
	</bpmndi:BPMNDiagram>
	
</definitions>
